#ifndef HTTP_SCHEME_FACTORY_H
#define HTTP_SCHEME_FACTORY_H

#include "capi/cef_scheme_capi.h"
#include "logger.h"


// 全局对象，cef关闭前清理
extern cef_scheme_handler_factory_t* g_http_scheme_factory;

struct _cef_resource_handler_t* CEF_CALLBACK create(
      struct _cef_scheme_handler_factory_t* self,
      struct _cef_browser_t* browser,
      struct _cef_frame_t* frame,
      const cef_string_t* scheme_name,
      struct _cef_request_t* request);


// 初始化 
cef_scheme_handler_factory_t* create_http_scheme_factory_t();


#endif